package com.xiaoyy.app.extend.gateway.controller;

import com.xiaoyy.app.extend.util.AliyunUtil;
import com.xiaoyy.core.common.vo.AliyunVO;
import com.xiaoyy.core.common.vo.AppResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 阿里云相关接口
 *
 * @author shun
 * @date 2018-08-17
 */
@RestController
@RequestMapping(value = "/other/sso/aliyun")
@Api(tags = "阿里云接口管理")
public class AliyunController {


    /**
     * 短信发送接口
     */
    @PostMapping(value = "/sendMsg", produces = "application/json;charset=UTF-8")
    @ApiOperation(value = "发送短信", notes = "发送短信")
    public AppResponse sendMsg(@RequestBody  AliyunVO aliyunVO){
        AliyunUtil.sendMsg(aliyunVO);
        return AppResponse.successMsg("短信发送失败");
    }
}
